<%@ tag body-content="empty" %>
<%@ attribute name="items" required="true" type="java.lang.Object" %>
<%@ attribute name="var" rtexprvalue="false" required="true" %>
<%@ attribute name="td" fragment="true" required="true" %>
<%@ attribute name="type" required="false" %>
<%@ attribute name="style" required="false" %>
<%@ variable name-from-attribute="var" alias="item" scope="NESTED" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:forEach var="item" varStatus="status" items="${items}">
	<c:choose>
		<c:when test="${status.count % 2 == 1}">
			<c:set var="column" value="odd"/>
		</c:when>
		<c:otherwise>
			<c:set var="column" value="even"/>
		</c:otherwise>
	</c:choose>
	<tr class="${type} ${column} ${style}">
		<jsp:invoke fragment="td"/>
	</tr>
</c:forEach>